<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Struct template bound_launcher</title>
<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../../boost_process/v2.html#header.boost.process.v2.bind_launcher_hpp" title="Header &lt;boost/process/v2/bind_launcher.hpp&gt;">
<link rel="prev" href="../../../boost_process/v2.html" title="Process V2">
<link rel="next" href="basic_cstring_ref.html" title="Struct template basic_cstring_ref">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td>
<td align="center"><a href="../../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../../../boost_process/v2.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../boost_process/v2.html#header.boost.process.v2.bind_launcher_hpp"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="basic_cstring_ref.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.process.v2.bound_launcher"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Struct template bound_launcher</span></h2>
<p>boost::process::v2::bound_launcher — Utility class to bind initializers to a launcher. </p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../../boost_process/v2.html#header.boost.process.v2.bind_launcher_hpp" title="Header &lt;boost/process/v2/bind_launcher.hpp&gt;">boost/process/v2/bind_launcher.hpp</a>&gt;

</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Launcher<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Init<span class="special">&gt;</span> 
<span class="keyword">struct</span> <a class="link" href="bound_launcher.html" title="Struct template bound_launcher">bound_launcher</a> <span class="special">{</span>
  <span class="comment">// <a class="link" href="bound_launcher.html#boost.process.v2.bound_launcherconstruct-copy-destruct">construct/copy/destruct</a></span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Launcher_<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Init_<span class="special">&gt;</span> 
    <a class="link" href="bound_launcher.html#idm6598-bb"><span class="identifier">bound_launcher</span></a><span class="special">(</span><span class="identifier">Launcher_</span> <span class="special">&amp;&amp;</span><span class="special">,</span> <span class="identifier">Init_</span> <span class="special">&amp;&amp;</span><span class="special">...</span><span class="special">)</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="bound_launcher.html#idm6533-bb">public member functions</a></span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> ExecutionContext<span class="special">,</span> <span class="keyword">typename</span> Args<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Inits<span class="special">&gt;</span> 
    <span class="keyword">auto</span> <a class="link" href="bound_launcher.html#idm6534-bb"><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span></a><span class="special">(</span><span class="identifier">ExecutionContext</span> <span class="special">&amp;</span><span class="special">,</span> 
                    <span class="keyword">const</span> <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">is_convertible</span><span class="special">&lt;</span> <span class="identifier">ExecutionContext</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">execution_context</span> <span class="special">&amp;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="identifier">filesystem</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="special">&amp;</span><span class="special">,</span> 
                    <span class="identifier">Args</span> <span class="special">&amp;&amp;</span><span class="special">,</span> <span class="identifier">Inits</span> <span class="special">&amp;&amp;</span><span class="special">...</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> ExecutionContext<span class="special">,</span> <span class="keyword">typename</span> Args<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Inits<span class="special">&gt;</span> 
    <span class="keyword">auto</span> <a class="link" href="../../container/devector.html#idm6549-bb"><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span></a><span class="special">(</span><span class="identifier">ExecutionContext</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">error_code</span> <span class="special">&amp;</span><span class="special">,</span> 
                    <span class="keyword">const</span> <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">is_convertible</span><span class="special">&lt;</span> <span class="identifier">ExecutionContext</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">execution_context</span> <span class="special">&amp;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="identifier">filesystem</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="special">&amp;</span><span class="special">,</span> 
                    <span class="identifier">Args</span> <span class="special">&amp;&amp;</span><span class="special">,</span> <span class="identifier">Inits</span> <span class="special">&amp;&amp;</span><span class="special">...</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Executor<span class="special">,</span> <span class="keyword">typename</span> Args<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Inits<span class="special">&gt;</span> 
    <span class="keyword">auto</span> <a class="link" href="bound_launcher.html#idm6566-bb"><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span></a><span class="special">(</span><span class="identifier">Executor</span><span class="special">,</span> 
                    <span class="keyword">const</span> <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">execution</span><span class="special">::</span><span class="identifier">is_executor</span><span class="special">&lt;</span> <span class="identifier">Executor</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">||</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">is_executor</span><span class="special">&lt;</span> <span class="identifier">Executor</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="identifier">filesystem</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="special">&amp;</span><span class="special">,</span> 
                    <span class="identifier">Args</span> <span class="special">&amp;&amp;</span><span class="special">,</span> <span class="identifier">Inits</span> <span class="special">&amp;&amp;</span><span class="special">...</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Executor<span class="special">,</span> <span class="keyword">typename</span> Args<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Inits<span class="special">&gt;</span> 
    <span class="keyword">auto</span> <a class="link" href="bound_launcher.html#idm6581-bb"><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span></a><span class="special">(</span><span class="identifier">Executor</span><span class="special">,</span> <span class="identifier">error_code</span> <span class="special">&amp;</span><span class="special">,</span> 
                    <span class="keyword">const</span> <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">execution</span><span class="special">::</span><span class="identifier">is_executor</span><span class="special">&lt;</span> <span class="identifier">Executor</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">||</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">is_executor</span><span class="special">&lt;</span> <span class="identifier">Executor</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="identifier">filesystem</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="special">&amp;</span><span class="special">,</span> 
                    <span class="identifier">Args</span> <span class="special">&amp;&amp;</span><span class="special">,</span> <span class="identifier">Inits</span> <span class="special">&amp;&amp;</span><span class="special">...</span><span class="special">)</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="bound_launcher.html#idm6607-bb">private member functions</a></span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="special">...</span> Idx<span class="special">,</span> <span class="keyword">typename</span> ExecutionContext<span class="special">,</span> <span class="keyword">typename</span> Args<span class="special">,</span> 
           <span class="keyword">typename</span> <span class="special">...</span> Inits<span class="special">&gt;</span> 
    <span class="keyword">auto</span> <a class="link" href="../../circular_buffer_sp_idm5277.html#idm6608-bb"><span class="identifier">invoke</span></a><span class="special">(</span><span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">,</span> <span class="identifier">ExecutionContext</span> <span class="special">&amp;</span><span class="special">,</span> 
                <span class="keyword">const</span> <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">is_convertible</span><span class="special">&lt;</span> <span class="identifier">ExecutionContext</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">execution_context</span> <span class="special">&amp;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="identifier">filesystem</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="special">&amp;</span><span class="special">,</span> 
                <span class="identifier">Args</span> <span class="special">&amp;&amp;</span><span class="special">,</span> <span class="identifier">Inits</span> <span class="special">&amp;&amp;</span><span class="special">...</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="special">...</span> Idx<span class="special">,</span> <span class="keyword">typename</span> ExecutionContext<span class="special">,</span> <span class="keyword">typename</span> Args<span class="special">,</span> 
           <span class="keyword">typename</span> <span class="special">...</span> Inits<span class="special">&gt;</span> 
    <span class="keyword">auto</span> <a class="link" href="bound_launcher.html#idm6628-bb"><span class="identifier">invoke</span></a><span class="special">(</span><span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">,</span> <span class="identifier">ExecutionContext</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">error_code</span> <span class="special">&amp;</span><span class="special">,</span> 
                <span class="keyword">const</span> <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">is_convertible</span><span class="special">&lt;</span> <span class="identifier">ExecutionContext</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">execution_context</span> <span class="special">&amp;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="identifier">filesystem</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="special">&amp;</span><span class="special">,</span> 
                <span class="identifier">Args</span> <span class="special">&amp;&amp;</span><span class="special">,</span> <span class="identifier">Inits</span> <span class="special">&amp;&amp;</span><span class="special">...</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="special">...</span> Idx<span class="special">,</span> <span class="keyword">typename</span> Executor<span class="special">,</span> <span class="keyword">typename</span> Args<span class="special">,</span> 
           <span class="keyword">typename</span> <span class="special">...</span> Inits<span class="special">&gt;</span> 
    <span class="keyword">auto</span> <a class="link" href="bound_launcher.html#idm6650-bb"><span class="identifier">invoke</span></a><span class="special">(</span><span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">,</span> <span class="identifier">Executor</span><span class="special">,</span> 
                <span class="keyword">const</span> <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">execution</span><span class="special">::</span><span class="identifier">is_executor</span><span class="special">&lt;</span> <span class="identifier">Executor</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">||</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">is_executor</span><span class="special">&lt;</span> <span class="identifier">Executor</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="identifier">filesystem</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="special">&amp;</span><span class="special">,</span> 
                <span class="identifier">Args</span> <span class="special">&amp;&amp;</span><span class="special">,</span> <span class="identifier">Inits</span> <span class="special">&amp;&amp;</span><span class="special">...</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="special">...</span> Idx<span class="special">,</span> <span class="keyword">typename</span> Executor<span class="special">,</span> <span class="keyword">typename</span> Args<span class="special">,</span> 
           <span class="keyword">typename</span> <span class="special">...</span> Inits<span class="special">&gt;</span> 
    <span class="keyword">auto</span> <a class="link" href="bound_launcher.html#idm6670-bb"><span class="identifier">invoke</span></a><span class="special">(</span><span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">,</span> <span class="identifier">Executor</span><span class="special">,</span> <span class="identifier">error_code</span> <span class="special">&amp;</span><span class="special">,</span> 
                <span class="keyword">const</span> <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">execution</span><span class="special">::</span><span class="identifier">is_executor</span><span class="special">&lt;</span> <span class="identifier">Executor</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">||</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">is_executor</span><span class="special">&lt;</span> <span class="identifier">Executor</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="identifier">filesystem</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="special">&amp;</span><span class="special">,</span> 
                <span class="identifier">Args</span> <span class="special">&amp;&amp;</span><span class="special">,</span> <span class="identifier">Inits</span> <span class="special">&amp;&amp;</span><span class="special">...</span><span class="special">)</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.29.12.8.2.3.4"></a><h2>Description</h2>
<p>
This can be used when multiple processes shared some settings, e.g. </p>
<div class="refsect2">
<a name="id-1.3.29.12.8.2.3.4.3"></a><h3>Template Parameters</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><span class="keyword">typename</span> Launcher</pre>
<p>The inner launcher to be used </p>
</li>
<li class="listitem"><pre class="literallayout"><span class="keyword">typename</span> <span class="special">...</span> Init</pre></li>
</ol></div>
</div>
<div class="refsect2">
<a name="id-1.3.29.12.8.2.3.4.4"></a><h3>
<a name="boost.process.v2.bound_launcherconstruct-copy-destruct"></a><code class="computeroutput">bound_launcher</code> 
        public
       construct/copy/destruct</h3>
<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Launcher_<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Init_<span class="special">&gt;</span> 
  <a name="idm6598-bb"></a><span class="identifier">bound_launcher</span><span class="special">(</span><span class="identifier">Launcher_</span> <span class="special">&amp;&amp;</span> l<span class="special">,</span> <span class="identifier">Init_</span> <span class="special">&amp;&amp;</span><span class="special">...</span> init<span class="special">)</span><span class="special">;</span></pre></li></ol></div>
</div>
<div class="refsect2">
<a name="id-1.3.29.12.8.2.3.4.5"></a><h3>
<a name="idm6533-bb"></a><code class="computeroutput">bound_launcher</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> ExecutionContext<span class="special">,</span> <span class="keyword">typename</span> Args<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Inits<span class="special">&gt;</span> 
  <span class="keyword">auto</span> <a name="idm6534-bb"></a><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span><span class="special">(</span><span class="identifier">ExecutionContext</span> <span class="special">&amp;</span> context<span class="special">,</span> 
                  <span class="keyword">const</span> <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">is_convertible</span><span class="special">&lt;</span> <span class="identifier">ExecutionContext</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">execution_context</span> <span class="special">&amp;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="identifier">filesystem</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="special">&amp;</span> executable<span class="special">,</span> 
                  <span class="identifier">Args</span> <span class="special">&amp;&amp;</span> args<span class="special">,</span> <span class="identifier">Inits</span> <span class="special">&amp;&amp;</span><span class="special">...</span> inits<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> ExecutionContext<span class="special">,</span> <span class="keyword">typename</span> Args<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Inits<span class="special">&gt;</span> 
  <span class="keyword">auto</span> <a name="idm6549-bb"></a><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span><span class="special">(</span><span class="identifier">ExecutionContext</span> <span class="special">&amp;</span> context<span class="special">,</span> <span class="identifier">error_code</span> <span class="special">&amp;</span> ec<span class="special">,</span> 
                  <span class="keyword">const</span> <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">is_convertible</span><span class="special">&lt;</span> <span class="identifier">ExecutionContext</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">execution_context</span> <span class="special">&amp;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="identifier">filesystem</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="special">&amp;</span> executable<span class="special">,</span> 
                  <span class="identifier">Args</span> <span class="special">&amp;&amp;</span> args<span class="special">,</span> <span class="identifier">Inits</span> <span class="special">&amp;&amp;</span><span class="special">...</span> inits<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Executor<span class="special">,</span> <span class="keyword">typename</span> Args<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Inits<span class="special">&gt;</span> 
  <span class="keyword">auto</span> <a name="idm6566-bb"></a><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span><span class="special">(</span><span class="identifier">Executor</span> exec<span class="special">,</span> 
                  <span class="keyword">const</span> <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">execution</span><span class="special">::</span><span class="identifier">is_executor</span><span class="special">&lt;</span> <span class="identifier">Executor</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">||</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">is_executor</span><span class="special">&lt;</span> <span class="identifier">Executor</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="identifier">filesystem</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="special">&amp;</span> executable<span class="special">,</span> 
                  <span class="identifier">Args</span> <span class="special">&amp;&amp;</span> args<span class="special">,</span> <span class="identifier">Inits</span> <span class="special">&amp;&amp;</span><span class="special">...</span> inits<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Executor<span class="special">,</span> <span class="keyword">typename</span> Args<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Inits<span class="special">&gt;</span> 
  <span class="keyword">auto</span> <a name="idm6581-bb"></a><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span><span class="special">(</span><span class="identifier">Executor</span> exec<span class="special">,</span> <span class="identifier">error_code</span> <span class="special">&amp;</span> ec<span class="special">,</span> 
                  <span class="keyword">const</span> <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">execution</span><span class="special">::</span><span class="identifier">is_executor</span><span class="special">&lt;</span> <span class="identifier">Executor</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">||</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">is_executor</span><span class="special">&lt;</span> <span class="identifier">Executor</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="identifier">filesystem</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="special">&amp;</span> executable<span class="special">,</span> 
                  <span class="identifier">Args</span> <span class="special">&amp;&amp;</span> args<span class="special">,</span> <span class="identifier">Inits</span> <span class="special">&amp;&amp;</span><span class="special">...</span> inits<span class="special">)</span><span class="special">;</span></pre></li>
</ol></div>
</div>
<div class="refsect2">
<a name="id-1.3.29.12.8.2.3.4.6"></a><h3>
<a name="idm6607-bb"></a><code class="computeroutput">bound_launcher</code> private member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="special">...</span> Idx<span class="special">,</span> <span class="keyword">typename</span> ExecutionContext<span class="special">,</span> <span class="keyword">typename</span> Args<span class="special">,</span> 
         <span class="keyword">typename</span> <span class="special">...</span> Inits<span class="special">&gt;</span> 
  <span class="keyword">auto</span> <a name="idm6608-bb"></a><span class="identifier">invoke</span><span class="special">(</span><span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">,</span> <span class="identifier">ExecutionContext</span> <span class="special">&amp;</span> context<span class="special">,</span> 
              <span class="keyword">const</span> <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">is_convertible</span><span class="special">&lt;</span> <span class="identifier">ExecutionContext</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">execution_context</span> <span class="special">&amp;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="identifier">filesystem</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="special">&amp;</span> executable<span class="special">,</span> 
              <span class="identifier">Args</span> <span class="special">&amp;&amp;</span> args<span class="special">,</span> <span class="identifier">Inits</span> <span class="special">&amp;&amp;</span><span class="special">...</span> inits<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="special">...</span> Idx<span class="special">,</span> <span class="keyword">typename</span> ExecutionContext<span class="special">,</span> <span class="keyword">typename</span> Args<span class="special">,</span> 
         <span class="keyword">typename</span> <span class="special">...</span> Inits<span class="special">&gt;</span> 
  <span class="keyword">auto</span> <a name="idm6628-bb"></a><span class="identifier">invoke</span><span class="special">(</span><span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">,</span> <span class="identifier">ExecutionContext</span> <span class="special">&amp;</span> context<span class="special">,</span> <span class="identifier">error_code</span> <span class="special">&amp;</span> ec<span class="special">,</span> 
              <span class="keyword">const</span> <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">is_convertible</span><span class="special">&lt;</span> <span class="identifier">ExecutionContext</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">execution_context</span> <span class="special">&amp;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="identifier">filesystem</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="special">&amp;</span> executable<span class="special">,</span> 
              <span class="identifier">Args</span> <span class="special">&amp;&amp;</span> args<span class="special">,</span> <span class="identifier">Inits</span> <span class="special">&amp;&amp;</span><span class="special">...</span> inits<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="special">...</span> Idx<span class="special">,</span> <span class="keyword">typename</span> Executor<span class="special">,</span> <span class="keyword">typename</span> Args<span class="special">,</span> 
         <span class="keyword">typename</span> <span class="special">...</span> Inits<span class="special">&gt;</span> 
  <span class="keyword">auto</span> <a name="idm6650-bb"></a><span class="identifier">invoke</span><span class="special">(</span><span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">,</span> <span class="identifier">Executor</span> exec<span class="special">,</span> 
              <span class="keyword">const</span> <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">execution</span><span class="special">::</span><span class="identifier">is_executor</span><span class="special">&lt;</span> <span class="identifier">Executor</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">||</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">is_executor</span><span class="special">&lt;</span> <span class="identifier">Executor</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="identifier">filesystem</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="special">&amp;</span> executable<span class="special">,</span> 
              <span class="identifier">Args</span> <span class="special">&amp;&amp;</span> args<span class="special">,</span> <span class="identifier">Inits</span> <span class="special">&amp;&amp;</span><span class="special">...</span> inits<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="special">...</span> Idx<span class="special">,</span> <span class="keyword">typename</span> Executor<span class="special">,</span> <span class="keyword">typename</span> Args<span class="special">,</span> 
         <span class="keyword">typename</span> <span class="special">...</span> Inits<span class="special">&gt;</span> 
  <span class="keyword">auto</span> <a name="idm6670-bb"></a><span class="identifier">invoke</span><span class="special">(</span><span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">,</span> <span class="identifier">Executor</span> exec<span class="special">,</span> <span class="identifier">error_code</span> <span class="special">&amp;</span> ec<span class="special">,</span> 
              <span class="keyword">const</span> <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">execution</span><span class="special">::</span><span class="identifier">is_executor</span><span class="special">&lt;</span> <span class="identifier">Executor</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">||</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">is_executor</span><span class="special">&lt;</span> <span class="identifier">Executor</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="identifier">filesystem</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="special">&amp;</span> executable<span class="special">,</span> 
              <span class="identifier">Args</span> <span class="special">&amp;&amp;</span> args<span class="special">,</span> <span class="identifier">Inits</span> <span class="special">&amp;&amp;</span><span class="special">...</span> inits<span class="special">)</span><span class="special">;</span></pre></li>
</ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2006-2012 Julio M. Merino Vidal, Ilya Sokolov,
      Felipe Tanus, Jeff Flinn, Boris Schaeling<br>Copyright © 2016 Klemens D. Morgenstern<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
      </p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../../../boost_process/v2.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../boost_process/v2.html#header.boost.process.v2.bind_launcher_hpp"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="basic_cstring_ref.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
